/*    */ package com.chw.interceptor;
/*    */ 
/*    */ import com.chw.utils.LogUtil;
/*    */ import com.chw.utils.PropertyUtil;
/*    */ import java.io.PrintWriter;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.springframework.web.servlet.DispatcherServlet;
/*    */ 
/*    */ public class ProxyDispatcherServlet extends DispatcherServlet
/*    */ {
/* 17 */   private static LogUtil log = LogUtil.newInstance(ProxyDispatcherServlet.class);
/*    */ 
/*    */   protected void noHandlerFound(HttpServletRequest request, HttpServletResponse response) throws Exception
/*    */   {
/* 21 */     PrintWriter pw = response.getWriter();
/* 22 */     response.setContentType("application/json;charset=utf-8");
/* 23 */     String apiUrl = PropertyUtil.getProperty("chw.properties", "api.url");
/* 24 */     log.debug(String.format("api.url:%s", new Object[] { apiUrl }));
/*    */ 
/* 34 */     pw.flush();
/* 35 */     pw.close();
/*    */   }
/*    */ }

/* Location:           E:\chenya\2017 4-21\com.chw\interceptor\
 * Qualified Name:     com.chw.interceptor.ProxyDispatcherServlet
 * JD-Core Version:    0.6.0
 */